package org.wk.account.enums;



/**
 * 账户流转配置
 */
public enum TransferConfig {
	zuan_register_num("zuan_register_num","注册赠送鲸钻数量"),
	zuan_attendances_num("zuan_attendances_num","签到赠送鲸钻数量"),
	zuan_promote_num("zuan_promote_num","推广赠送鲸钻数量"),
	zuan_expired("zuan_expired","鲸钻有效期"),

	yuan_to_zai("yuan_to_zai","鲸源释放鲸仔比例"),

	zai_to_yuan("zai_to_yuan","鲸仔兑换鲸源比例"),

	zai_present_others_donate("zai_present_others_donate","赠送他人鲸仔自己获得鲸源奖励比例"),
	zai_to_ling("zai_to_ling","鲸仔兑换鲸灵收取服务费比例");
	private String code;
	private String name;
	private TransferConfig(String code, String name) {
		this.code = code;
		this.name = name;
	}

	public static TransferConfig containsCode(String code) {
		for (TransferConfig item : TransferConfig.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
	
}
